<template>
  <h3 v-if="title">{{ title }}</h3>
  <el-form :model="formData">
    <el-form-item label="姓名">
      <el-input v-model="formData.name" placeholder="请输入姓名"></el-input>
    </el-form-item>
    <el-form-item label="年龄">
      <el-input v-model="formData.age" placeholder="请输入年龄"></el-input>
    </el-form-item>
  </el-form>
</template>

<script setup>
defineProps({
  title: String,
})

const formData = ref({
  name: '',
  age: '',
})
</script>
